﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using CodeCamp.Models.Shared;
using CCM = CodeCamp.Model;

namespace CodeCamp.Models.Schedule
{
    public class ScheduleAddSessionModel
    {
        public ScheduleAddSessionModel()
        {
            Rooms = new List<Room>();
            Timeslots = new List<Timeslot>();
            UnscheduledSessions = new List<Session>();
        }

        public bool SessionAddAction { get; set; }

        public string EventShortName { get; set; }

        public string RoomId { get; set; }

        public int SessionId { get; set; }

        public string TimeslotId { get; set; }

        public List<Room> Rooms { get; private set; }

        public List<Timeslot> Timeslots { get; private set; }

        public List<Session> UnscheduledSessions { get; private set; }

        public class Room
        {
            public int RoomId { get; set; }
            public string Name { get; set; }
        }

        public class Session
        {
            public int SessionId { get; set; }
            public CCM.Session.SessionStatus Status { get; set; }
            public string DesiredRoomSize { get; set; }
            public string Title { get; set; }
        }

        public class Timeslot
        {
            public string TimeslotId { get; set; }
            public string Name { get; set; }
            public DateTime StartTime { get; set; }
            public DateTime EndTime { get; set; }
            public int SessionCount { get; set; }
        }

    }
}